package com.xpgk.mvc.detailAnnounce;

import java.util.Date;
import java.util.List;

import com.jfinal.aop.Before;
import com.jfinal.log.Log;
import com.jfinal.plugin.activerecord.tx.Tx;
import com.xpgk.annotation.Service;
import com.xpgk.mvc.base.BaseService;
import com.xpgk.mvc.user.User;

@Service(name = DetailAnnounceService.serviceName)
public class DetailAnnounceService extends BaseService {

	private static final Log log = Log.getLog(DetailAnnounceService.class);

	public static final String serviceName = "detailAnnounceService";
	
	
	@Before(Tx.class)
	public boolean save(DetailAnnounce detailAnnounce,String sendIds,String senderName) {
		boolean flag =false;
		if(detailAnnounce!=null){
			detailAnnounce.set(DetailAnnounce.column_postDate, new Date());
			detailAnnounce.set(DetailAnnounce.column_senderIds, sendIds);
			detailAnnounce.set(DetailAnnounce.column_senderName,senderName );
			flag=detailAnnounce.save();
		}
		return flag;
	}


	

	
}
